package com.yc.chaoshi.cs_index.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("pms_goods")
public class PmsGoods implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private int quantity;

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(exist = false)
    private Integer aid;
    @TableField(exist = false)
    private Integer cid;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }
    @TableField(exist = false)
    private Integer bid;



    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }
    @TableField(exist = false)
    private String aname;

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }
    @TableField(exist = false)
    private String bname;

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
    @TableField(exist = false)
    private String cname;
    /**
     * 分类id
     */
    private Integer oid;

    /**
     * 商品名字
     */
    private String name;

    /**
     * 商品积分
     */
    private Integer points;

    /**
     * 商品主图
     */
    private String image;

    /**
     * 画册图片
     */
    private String imageAlbum;

    /**
     * 删除状态
     */
    private Integer del;

    /**
     * 上架状态
     */
    private Integer grd;

    /**
     * 审核上架状态
     */
    private Integer sgrd;

    /**
     * 销量
     */
    private Integer sales;



    /**
     * 库存
     */
    private Integer stock;

    /**
     * 锁定库存
     */
    private Integer stockup;

    /**
     * 市场单价
     */
    private double price;

    /**
     * 优惠价
     */
    private double discountPrice;


    /**
     * 数量单位
     */
    private Integer amount;

    /**
     * 副标题
     */
    private String title;

    /**
     * 品牌id
     */
    private Integer pid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImageAlbum() {
        return imageAlbum;
    }

    public void setImageAlbum(String imageAlbum) {
        this.imageAlbum = imageAlbum;
    }

    public double getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(double discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getGrd() {
        return grd;
    }

    public void setGrd(Integer grd) {
        this.grd = grd;
    }

    public Integer getSgrd() {
        return sgrd;
    }

    public void setSgrd(Integer sgrd) {
        this.sgrd = sgrd;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getStockup() {
        return stockup;
    }

    public void setStockup(Integer stockup) {
        this.stockup = stockup;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }



    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "PmsGoods{" +
                "id=" + id +
                ", oid=" + oid +
                ", name=" + name +
                ", points=" + points +
                ", image=" + image +
                ", image_album=" + imageAlbum +
                ", del=" + del +
                ", grd=" + grd +
                ", sgrd=" + sgrd +
                ", sales=" + sales +
                ", stock=" + stock +
                ", stockup=" + stockup +
                ", price=" + price +
                ", discount_price=" + discountPrice +
                ", amount=" + amount +
                ", title=" + title +
                ", pid=" + pid +
                "}";
    }
}
